import request from '@/config/axios'

//创建模板
export const classificationCreate = async (data) => {
  return await request.post({
    url: '/amp/classification/create',
    data
  })
}
//删除模板
export const classificationDelete = async (id) => {
  return await request.delete({
    url: '/amp/classification/delete?id=' + id
  })
}
//获得模板
export const classificationGet = async (id) => {
  return await request.get({
    url: '/amp/classification/get?id=' + id
  })
}
//获得模板分页
export const classificationPage = async (params) => {
  return await request.getOriginal({
    url: '/amp/classification/page',
    params
  })
}
//模板修改
export const classificationUpdate = async (data) => {
  return await request.put({
    url: '/amp/classification/update',
    data
  })
}
//模板树
export const classificationTree = async (params) => {
  return await request.get({
    url: '/amp/classification/tree',
    params
  })
}
//标准分类树
export const dataClassificationTree = async (params) => {
  return await request.get({
    url: '/amp/data-standard/classificationTree',
    params
  })
}
